package com.property.manage.model.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/7/14
 */
@TableName("t_menu")
@Data
public class Menu {

    /**
     * 目录
     */
    public static final Byte TYPE_DIR = 1;

    /**
     * 菜单
     */
    public static final Byte TYPE_MENU = 2;

    /**
     * 根目录编号
     */
    public static final Integer ROOT_MENU_ID = 0;

    @TableId(type = IdType.AUTO)
    private Integer menuId;

    private String title;

    private Byte type;

    private String path;

    private String icon;

    private Integer parentId;

    private Integer weight;

    @TableField(exist = false)
    @ApiModelProperty("是否选中")
    private Boolean checked;
}
